package collector

import (
	"gitee.com/csingo/cRpc"
	"github.com/gin-gonic/gin"
)

type GitServiceHTTPClient struct{}

func (i *GitServiceHTTPClient) RpcClientName() (app string, service string) {
	return "collector", "GitService"
}

func (i *GitServiceHTTPClient) Download(ctx *gin.Context, req *GitServiceDownloadReq) (rsp *GitServiceDownloadRsp, err error) {
	rsp = &GitServiceDownloadRsp{}
	err = cRpc.Call(ctx, i, "Download", req, rsp)
	return
}
